[Android] Change language settings (locale) for the device

Posted by raychenon on Stack Overflow See other posts from Stack Overflow or by raychenon
Published on 2010-04-07T22:24:08Z Indexed on 2010/04/07 23:43 UTC
Read the original article Hit count: 1154

Filed under:
|
|
|

Hi, I know it's possible to have multiple languages in a single application through the res/string and depending on Locale. Here is a case http://stackoverflow.com/questions/2078289/android-controling-the-user-language

Now how can I change the language in the phone ? Like I'd do by Menu > Settings > Language & Keyboard > Select locale > languages

Is there some real code to access to these settings ? Or should I create intent for a shortcut to the language settings. Please post some code

Edit : With Locale class developer.android.com/intl/fr/reference/java/util/Locale.html

The constructor is at least Locale(String language) The input is language. How can you retrieve the current language used on the device ?

© Stack Overflow or respective owner

Related posts about android

Related posts about settings